package org.walkerljl.commons.ioc;

import org.walkerljl.commons.exception.UncheckedException;

/**
 * 应用异常
 * 
 * @author lijunlin
 */
public class IocException extends UncheckedException {

	private static final long serialVersionUID = -6786549876849535944L;

	/** 异常码*/
	protected String code = "";
	
	/**
	 * 默认构造函数
	 */
	public IocException() {
		super();
	}
	
	/**
	 * 构造函数
	 * @param message
	 */
	public IocException(String message) {
		super(message);
	}
	
	/**
	 * 构造函数
	 * @param code
	 * @param message
	 */
	public IocException(String code, String message) {
		super(message);
		this.code = code;
	}
	
	/**
	 * 构造函数
	 * @param e
	 */
	public IocException(Throwable e) {
		super(e);
	}
	
	/**
	 * 构造函数
	 * @param message
	 * @param e
	 */
	public IocException(String message, Throwable e) {
		super(message, e);
	}
	
	/**
	 * 构造函数
	 * @param code
	 * @param message
	 * @param e
	 */
	public IocException(String code, String message, Throwable e) {
		super(message, e);
		this.code = code;
	}
	
	/**
	 * 获取异常码
	 * @return
	 */
	public String getCode() {
		return code;
	}
}